<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex logOutSubmit_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }"
			>
				<view class='flex flex-wrap align-stretch justify-between logOutSubmit_fd0_0'>
					<view
						class='flex flex-wrap align-center logOutSubmit_fd0_0_c0'
						@tap.stop="handleJumpDiy"
						data-type="back"
						data-url="1"
					>
						<text class='fu-iconfont2  logOutSubmit_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text
							class='logOutSubmit_fd0_0_c1_c0'
							style="font-family: Alimama DongFangDaKai, Alimama DongFangDaKai;"
						>注销账号</text>
					</view>
					<view class='flex align-center justify-end logOutSubmit_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<view
				class="loading_css"
				v-if="isShow"
			>
				<u-loading
					size="36"
					color="#AD3823"
				></u-loading>
				<view>加载中</view>
			</view>
			<block v-else>
				<!---账号提交成功flex布局开始-->
				<view class="flex flex-direction align-stretch benben-flex-layout logOutSubmit_flex_1">
					<view
						class='flex flex-direction align-center'
						v-if=" type=='0'"
					>
						<image
							class='logOutSubmit_fd1_0_c0'
							mode="aspectFit"
							:src='STATIC_URL+"697.png"'
						></image>
						<text class='logOutSubmit_fd1_0_c1' style="font-family: Source Han Sans CN, Source Han Sans CN;">注销申请提交成功！</text>
						<text class='logOutSubmit_fd1_0_c2' style="font-family: Source Han Sans CN, Source Han Sans CN;">我们工作人员将会对您的账号进行审核，审核通过后， 账号将会被注销，请知悉</text>
					</view>
					<block v-if="type == 1">
						<view
							class='flex flex-direction flex-wrap align-center'
							v-if="dataDetails.status=='0'"
						>
							<image
								class='logOutSubmit_fd1_0_c0'
								mode="aspectFit"
								:src='STATIC_URL+"226.png"'
							></image>
							<text class='logOutSubmit_fd1_1_c1' style="font-family: Source Han Sans CN, Source Han Sans CN;">处理中</text>
							<view class='flex flex-wrap align-center'>
								<text class='logOutSubmit_fd1_1_c2_c0' style="font-family: Source Han Sans CN, Source Han Sans CN;">注销理由：</text>
								<text class='logOutSubmit_fd1_1_c2_c0' style="font-family: Source Han Sans CN, Source Han Sans CN;">{{dataDetails.reason}}</text>
							</view>
						</view>
						<view
							class='flex flex-direction flex-wrap align-center'
							v-if="dataDetails.status=='2'"
						>
							<image
								class='logOutSubmit_fd1_0_c0'
								mode="aspectFit"
								:src='STATIC_URL+"227.png"'
							></image>
							<text class='logOutSubmit_fd1_0_c1' style="font-family: Source Han Sans CN, Source Han Sans CN;">注销驳回</text>
						</view>
					</block>
				</view>

				<!---账号提交成功flex布局结束-->
				<view class="flex flex-wrap align-center justify-center benben-position-layout flex logOutSubmit_flex_2">
					<button
					style="font-family: Alimama DongFangDaKai, Alimama DongFangDaKai;"
						class='logOutSubmit_fd2_0'
						@tap.stop="logOutFunc()"
					>退出登录</button>

				</view>
				<view :style="{height: '128rpx'}"></view>
			</block>

		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"dataDetails": {
					"aid": "",
					"user_nickname": "",
					"user_avatar": "",
					"user_mobile": "",
					"cancel_type": "",
					"create_time": "",
					"status": "",
					"cancel_reason": "",
					"cancel_type_text": ""
				},
				"type": "0", //0 首次提交  1已提交
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				type
			} = options
			if (type !== undefined) this.type = type
			this.getDetailFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取注销详情  60fa2181a3e84
			getDetailFunc() {
				//请求方法
				//数据验证

				this.$api.post(global.API_VERSION + '60fa2181a3e84', {

				}).then(res => {
					this.isShow = false;
					if (res.data.code == 1) {
						this.dataDetails = res.data.data;
					} else {
						this.$message.info(res.data.msg);
					}
				})
			},
			//退出登录
			logOutFunc() {
				this.$store.commit('logout');
				this.toLoginDiy();
			}
		}
	};
</script>
<style
	lang="scss"
	scoped
>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(https://www.guochaoxiaoju.com/uploads/mini/696.png) no-repeat;
		background-size: 100% auto;
	}

	.logOutSubmit_flex_0 {
		border-bottom: 1px solid #eee;
		background: url(https://www.guochaoxiaoju.com/uploads/mini/696.png) no-repeat;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.logOutSubmit_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.logOutSubmit_fd0_0_c1_c0 {
		font-size: 40rpx;
		font-weight: 400;
		color: #000000;
		line-height: 50rpx;
	}

	.logOutSubmit_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.logOutSubmit_fd0_0_c0 {
		width: 100rpx;
	}

	.logOutSubmit_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.logOutSubmit_flex_1 {
		padding: 88rpx 95rpx 0rpx 95rpx;
	}

	.logOutSubmit_fd1_1_c2_c0 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: var(--benbenFontColor2);
	}

	.logOutSubmit_fd1_1_c1 {
		line-height: 105rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: var(--benbenFontColor0);
	}

	.logOutSubmit_fd1_0_c2 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: var(--benbenFontColor2);
		text-align: center;
	}

	.logOutSubmit_fd1_0_c1 {
		font-size: 32rpx;
		font-weight: 700;
		color: var(--benbenFontColor0);
		margin: 32rpx 0rpx 24rpx 0rpx;
	}

	.logOutSubmit_fd1_0_c0 {
		width: 232rpx;
		height: 232rpx;
		margin: 0rpx 0rpx 10rpx 0rpx;
	}

	.logOutSubmit_flex_2 {
		width: 750rpx;
		height: 128rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
	}

	.logOutSubmit_fd2_0 {
		background: linear-gradient(90deg, #BB4834 0%, #96301D 100%);
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		font-size: 36rpx;
		color: var(--benbenFontColor3);
		width: 690rpx;
		height: 88rpx;
		line-height: 88rpx;
		margin: 0rpx 0rpx 40rpx 0rpx;
	}
</style>